package com.wx.gof.pattern.structural.bridge;

/**
 * @ClassName ConstructionBank
 * @Author wx
 * @Description 建设银行
 * @Date 2018-12-10-21:30
 */
public class ConstructionBank extends Bank {

    @Override
    public void setAccount(Account account) {
        super.account = account;
    }

    @Override
    Account openAccount() {
        //委托account去执行打开账户操作
        System.out.println("建设银行");
        super.account.openAccount();
        return super.account;
    }
}
